﻿#if USE_UNI_LUA
using LuaAPI = UniLua.Lua;
using RealStatePtr = UniLua.ILuaState;
using LuaCSFunction = UniLua.CSharpFunctionDelegate;
#else
using LuaAPI = XLua.LuaDLL.Lua;
using RealStatePtr = System.IntPtr;
using LuaCSFunction = XLua.LuaDLL.lua_CSFunction;
#endif

using XLua;
using System.Collections.Generic;


namespace XLua.CSObjectWrap
{
    using Utils = XLua.Utils;
    public class UnityEngineRenderingBatchRendererGroupWrap 
    {
        public static void __Register(RealStatePtr L)
        {
			ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
			System.Type type = typeof(UnityEngine.Rendering.BatchRendererGroup);
			Utils.BeginObjectRegister(type, L, translator, 0, 15, 0, 0);
			
			Utils.RegisterFunc(L, Utils.METHOD_IDX, "Dispose", _m_Dispose);
			Utils.RegisterFunc(L, Utils.METHOD_IDX, "AddBatch", _m_AddBatch);
			Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetBatchFlags", _m_SetBatchFlags);
			Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetBatchPropertyMetadata", _m_SetBatchPropertyMetadata);
			Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetInstancingData", _m_SetInstancingData);
			Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetBatchMatrices", _m_GetBatchMatrices);
			Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetBatchScalarArrayInt", _m_GetBatchScalarArrayInt);
			Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetBatchScalarArray", _m_GetBatchScalarArray);
			Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetBatchVectorArrayInt", _m_GetBatchVectorArrayInt);
			Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetBatchVectorArray", _m_GetBatchVectorArray);
			Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetBatchMatrixArray", _m_GetBatchMatrixArray);
			Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetBatchBounds", _m_SetBatchBounds);
			Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetNumBatches", _m_GetNumBatches);
			Utils.RegisterFunc(L, Utils.METHOD_IDX, "RemoveBatch", _m_RemoveBatch);
			Utils.RegisterFunc(L, Utils.METHOD_IDX, "EnableVisibleIndicesYArray", _m_EnableVisibleIndicesYArray);
			
			
			
			
			
			Utils.EndObjectRegister(type, L, translator, null, null,
			    null, null, null);

		    Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0);
			
			
            
			
			
			
			Utils.EndClassRegister(type, L, translator);
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int __CreateInstance(RealStatePtr L)
        {
            
			try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
				if(LuaAPI.lua_gettop(L) == 2 && translator.Assignable<UnityEngine.Rendering.BatchRendererGroup.OnPerformCulling>(L, 2))
				{
					UnityEngine.Rendering.BatchRendererGroup.OnPerformCulling _cullingCallback = translator.GetDelegate<UnityEngine.Rendering.BatchRendererGroup.OnPerformCulling>(L, 2);
					
					var gen_ret = new UnityEngine.Rendering.BatchRendererGroup(_cullingCallback);
					translator.Push(L, gen_ret);
                    
					return 1;
				}
				
			}
			catch(System.Exception gen_e) {
				return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
			}
            return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Rendering.BatchRendererGroup constructor!");
            
        }
        
		
        
		
        
        
        
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_Dispose(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
                UnityEngine.Rendering.BatchRendererGroup gen_to_be_invoked = (UnityEngine.Rendering.BatchRendererGroup)translator.FastGetCSObj(L, 1);
            
            
                
                {
                    
                    gen_to_be_invoked.Dispose(  );
                    
                    
                    
                    return 0;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
            }
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_AddBatch(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
                UnityEngine.Rendering.BatchRendererGroup gen_to_be_invoked = (UnityEngine.Rendering.BatchRendererGroup)translator.FastGetCSObj(L, 1);
            
            
			    int gen_param_count = LuaAPI.lua_gettop(L);
            
                if(gen_param_count == 12&& translator.Assignable<UnityEngine.Mesh>(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& translator.Assignable<UnityEngine.Material>(L, 4)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5)&& translator.Assignable<UnityEngine.Rendering.ShadowCastingMode>(L, 6)&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 7)&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 8)&& translator.Assignable<UnityEngine.Bounds>(L, 9)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 10)&& translator.Assignable<UnityEngine.MaterialPropertyBlock>(L, 11)&& translator.Assignable<UnityEngine.GameObject>(L, 12)) 
                {
                    UnityEngine.Mesh _mesh = (UnityEngine.Mesh)translator.GetObject(L, 2, typeof(UnityEngine.Mesh));
                    int _subMeshIndex = LuaAPI.xlua_tointeger(L, 3);
                    UnityEngine.Material _material = (UnityEngine.Material)translator.GetObject(L, 4, typeof(UnityEngine.Material));
                    int _layer = LuaAPI.xlua_tointeger(L, 5);
                    UnityEngine.Rendering.ShadowCastingMode _castShadows;translator.Get(L, 6, out _castShadows);
                    bool _receiveShadows = LuaAPI.lua_toboolean(L, 7);
                    bool _invertCulling = LuaAPI.lua_toboolean(L, 8);
                    UnityEngine.Bounds _bounds;translator.Get(L, 9, out _bounds);
                    int _instanceCount = LuaAPI.xlua_tointeger(L, 10);
                    UnityEngine.MaterialPropertyBlock _customProps = (UnityEngine.MaterialPropertyBlock)translator.GetObject(L, 11, typeof(UnityEngine.MaterialPropertyBlock));
                    UnityEngine.GameObject _associatedSceneObject = (UnityEngine.GameObject)translator.GetObject(L, 12, typeof(UnityEngine.GameObject));
                    
                        var gen_ret = gen_to_be_invoked.AddBatch( _mesh, _subMeshIndex, _material, _layer, _castShadows, _receiveShadows, _invertCulling, _bounds, _instanceCount, _customProps, _associatedSceneObject );
                        LuaAPI.xlua_pushinteger(L, gen_ret);
                    
                    
                    
                    return 1;
                }
                if(gen_param_count == 13&& translator.Assignable<UnityEngine.Mesh>(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& translator.Assignable<UnityEngine.Material>(L, 4)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5)&& translator.Assignable<UnityEngine.Rendering.ShadowCastingMode>(L, 6)&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 7)&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 8)&& translator.Assignable<UnityEngine.Bounds>(L, 9)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 10)&& translator.Assignable<UnityEngine.MaterialPropertyBlock>(L, 11)&& translator.Assignable<UnityEngine.GameObject>(L, 12)&& (LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 13) || LuaAPI.lua_isuint64(L, 13))) 
                {
                    UnityEngine.Mesh _mesh = (UnityEngine.Mesh)translator.GetObject(L, 2, typeof(UnityEngine.Mesh));
                    int _subMeshIndex = LuaAPI.xlua_tointeger(L, 3);
                    UnityEngine.Material _material = (UnityEngine.Material)translator.GetObject(L, 4, typeof(UnityEngine.Material));
                    int _layer = LuaAPI.xlua_tointeger(L, 5);
                    UnityEngine.Rendering.ShadowCastingMode _castShadows;translator.Get(L, 6, out _castShadows);
                    bool _receiveShadows = LuaAPI.lua_toboolean(L, 7);
                    bool _invertCulling = LuaAPI.lua_toboolean(L, 8);
                    UnityEngine.Bounds _bounds;translator.Get(L, 9, out _bounds);
                    int _instanceCount = LuaAPI.xlua_tointeger(L, 10);
                    UnityEngine.MaterialPropertyBlock _customProps = (UnityEngine.MaterialPropertyBlock)translator.GetObject(L, 11, typeof(UnityEngine.MaterialPropertyBlock));
                    UnityEngine.GameObject _associatedSceneObject = (UnityEngine.GameObject)translator.GetObject(L, 12, typeof(UnityEngine.GameObject));
                    ulong _sceneCullingMask = LuaAPI.lua_touint64(L, 13);
                    
                        var gen_ret = gen_to_be_invoked.AddBatch( _mesh, _subMeshIndex, _material, _layer, _castShadows, _receiveShadows, _invertCulling, _bounds, _instanceCount, _customProps, _associatedSceneObject, _sceneCullingMask );
                        LuaAPI.xlua_pushinteger(L, gen_ret);
                    
                    
                    
                    return 1;
                }
                if(gen_param_count == 14&& translator.Assignable<UnityEngine.Mesh>(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& translator.Assignable<UnityEngine.Material>(L, 4)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5)&& translator.Assignable<UnityEngine.Rendering.ShadowCastingMode>(L, 6)&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 7)&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 8)&& translator.Assignable<UnityEngine.Bounds>(L, 9)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 10)&& translator.Assignable<UnityEngine.MaterialPropertyBlock>(L, 11)&& translator.Assignable<UnityEngine.GameObject>(L, 12)&& (LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 13) || LuaAPI.lua_isuint64(L, 13))&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 14)) 
                {
                    UnityEngine.Mesh _mesh = (UnityEngine.Mesh)translator.GetObject(L, 2, typeof(UnityEngine.Mesh));
                    int _subMeshIndex = LuaAPI.xlua_tointeger(L, 3);
                    UnityEngine.Material _material = (UnityEngine.Material)translator.GetObject(L, 4, typeof(UnityEngine.Material));
                    int _layer = LuaAPI.xlua_tointeger(L, 5);
                    UnityEngine.Rendering.ShadowCastingMode _castShadows;translator.Get(L, 6, out _castShadows);
                    bool _receiveShadows = LuaAPI.lua_toboolean(L, 7);
                    bool _invertCulling = LuaAPI.lua_toboolean(L, 8);
                    UnityEngine.Bounds _bounds;translator.Get(L, 9, out _bounds);
                    int _instanceCount = LuaAPI.xlua_tointeger(L, 10);
                    UnityEngine.MaterialPropertyBlock _customProps = (UnityEngine.MaterialPropertyBlock)translator.GetObject(L, 11, typeof(UnityEngine.MaterialPropertyBlock));
                    UnityEngine.GameObject _associatedSceneObject = (UnityEngine.GameObject)translator.GetObject(L, 12, typeof(UnityEngine.GameObject));
                    ulong _sceneCullingMask = LuaAPI.lua_touint64(L, 13);
                    uint _renderingLayerMask = LuaAPI.xlua_touint(L, 14);
                    
                        var gen_ret = gen_to_be_invoked.AddBatch( _mesh, _subMeshIndex, _material, _layer, _castShadows, _receiveShadows, _invertCulling, _bounds, _instanceCount, _customProps, _associatedSceneObject, _sceneCullingMask, _renderingLayerMask );
                        LuaAPI.xlua_pushinteger(L, gen_ret);
                    
                    
                    
                    return 1;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
            }
            
            return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Rendering.BatchRendererGroup.AddBatch!");
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_SetBatchFlags(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
                UnityEngine.Rendering.BatchRendererGroup gen_to_be_invoked = (UnityEngine.Rendering.BatchRendererGroup)translator.FastGetCSObj(L, 1);
            
            
                
                {
                    int _batchIndex = LuaAPI.xlua_tointeger(L, 2);
                    ulong _flags = LuaAPI.lua_touint64(L, 3);
                    
                    gen_to_be_invoked.SetBatchFlags( _batchIndex, _flags );
                    
                    
                    
                    return 0;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
            }
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_SetBatchPropertyMetadata(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
                UnityEngine.Rendering.BatchRendererGroup gen_to_be_invoked = (UnityEngine.Rendering.BatchRendererGroup)translator.FastGetCSObj(L, 1);
            
            
                
                {
                    int _batchIndex = LuaAPI.xlua_tointeger(L, 2);
                    Unity.Collections.NativeArray<int> _cbufferLengths;translator.Get(L, 3, out _cbufferLengths);
                    Unity.Collections.NativeArray<int> _cbufferMetadata;translator.Get(L, 4, out _cbufferMetadata);
                    
                    gen_to_be_invoked.SetBatchPropertyMetadata( _batchIndex, _cbufferLengths, _cbufferMetadata );
                    
                    
                    
                    return 0;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
            }
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_SetInstancingData(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
                UnityEngine.Rendering.BatchRendererGroup gen_to_be_invoked = (UnityEngine.Rendering.BatchRendererGroup)translator.FastGetCSObj(L, 1);
            
            
                
                {
                    int _batchIndex = LuaAPI.xlua_tointeger(L, 2);
                    int _instanceCount = LuaAPI.xlua_tointeger(L, 3);
                    UnityEngine.MaterialPropertyBlock _customProps = (UnityEngine.MaterialPropertyBlock)translator.GetObject(L, 4, typeof(UnityEngine.MaterialPropertyBlock));
                    
                    gen_to_be_invoked.SetInstancingData( _batchIndex, _instanceCount, _customProps );
                    
                    
                    
                    return 0;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
            }
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_GetBatchMatrices(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
                UnityEngine.Rendering.BatchRendererGroup gen_to_be_invoked = (UnityEngine.Rendering.BatchRendererGroup)translator.FastGetCSObj(L, 1);
            
            
                
                {
                    int _batchIndex = LuaAPI.xlua_tointeger(L, 2);
                    
                        var gen_ret = gen_to_be_invoked.GetBatchMatrices( _batchIndex );
                        translator.Push(L, gen_ret);
                    
                    
                    
                    return 1;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
            }
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_GetBatchScalarArrayInt(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
                UnityEngine.Rendering.BatchRendererGroup gen_to_be_invoked = (UnityEngine.Rendering.BatchRendererGroup)translator.FastGetCSObj(L, 1);
            
            
			    int gen_param_count = LuaAPI.lua_gettop(L);
            
                if(gen_param_count == 3&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)) 
                {
                    int _batchIndex = LuaAPI.xlua_tointeger(L, 2);
                    int _propertyName = LuaAPI.xlua_tointeger(L, 3);
                    
                        var gen_ret = gen_to_be_invoked.GetBatchScalarArrayInt( _batchIndex, _propertyName );
                        translator.Push(L, gen_ret);
                    
                    
                    
                    return 1;
                }
                if(gen_param_count == 3&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& (LuaAPI.lua_isnil(L, 3) || LuaAPI.lua_type(L, 3) == LuaTypes.LUA_TSTRING)) 
                {
                    int _batchIndex = LuaAPI.xlua_tointeger(L, 2);
                    string _propertyName = LuaAPI.lua_tostring(L, 3);
                    
                        var gen_ret = gen_to_be_invoked.GetBatchScalarArrayInt( _batchIndex, _propertyName );
                        translator.Push(L, gen_ret);
                    
                    
                    
                    return 1;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
            }
            
            return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Rendering.BatchRendererGroup.GetBatchScalarArrayInt!");
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_GetBatchScalarArray(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
                UnityEngine.Rendering.BatchRendererGroup gen_to_be_invoked = (UnityEngine.Rendering.BatchRendererGroup)translator.FastGetCSObj(L, 1);
            
            
			    int gen_param_count = LuaAPI.lua_gettop(L);
            
                if(gen_param_count == 3&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)) 
                {
                    int _batchIndex = LuaAPI.xlua_tointeger(L, 2);
                    int _propertyName = LuaAPI.xlua_tointeger(L, 3);
                    
                        var gen_ret = gen_to_be_invoked.GetBatchScalarArray( _batchIndex, _propertyName );
                        translator.Push(L, gen_ret);
                    
                    
                    
                    return 1;
                }
                if(gen_param_count == 3&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& (LuaAPI.lua_isnil(L, 3) || LuaAPI.lua_type(L, 3) == LuaTypes.LUA_TSTRING)) 
                {
                    int _batchIndex = LuaAPI.xlua_tointeger(L, 2);
                    string _propertyName = LuaAPI.lua_tostring(L, 3);
                    
                        var gen_ret = gen_to_be_invoked.GetBatchScalarArray( _batchIndex, _propertyName );
                        translator.Push(L, gen_ret);
                    
                    
                    
                    return 1;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
            }
            
            return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Rendering.BatchRendererGroup.GetBatchScalarArray!");
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_GetBatchVectorArrayInt(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
                UnityEngine.Rendering.BatchRendererGroup gen_to_be_invoked = (UnityEngine.Rendering.BatchRendererGroup)translator.FastGetCSObj(L, 1);
            
            
			    int gen_param_count = LuaAPI.lua_gettop(L);
            
                if(gen_param_count == 3&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)) 
                {
                    int _batchIndex = LuaAPI.xlua_tointeger(L, 2);
                    int _propertyName = LuaAPI.xlua_tointeger(L, 3);
                    
                        var gen_ret = gen_to_be_invoked.GetBatchVectorArrayInt( _batchIndex, _propertyName );
                        translator.Push(L, gen_ret);
                    
                    
                    
                    return 1;
                }
                if(gen_param_count == 3&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& (LuaAPI.lua_isnil(L, 3) || LuaAPI.lua_type(L, 3) == LuaTypes.LUA_TSTRING)) 
                {
                    int _batchIndex = LuaAPI.xlua_tointeger(L, 2);
                    string _propertyName = LuaAPI.lua_tostring(L, 3);
                    
                        var gen_ret = gen_to_be_invoked.GetBatchVectorArrayInt( _batchIndex, _propertyName );
                        translator.Push(L, gen_ret);
                    
                    
                    
                    return 1;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
            }
            
            return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Rendering.BatchRendererGroup.GetBatchVectorArrayInt!");
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_GetBatchVectorArray(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
                UnityEngine.Rendering.BatchRendererGroup gen_to_be_invoked = (UnityEngine.Rendering.BatchRendererGroup)translator.FastGetCSObj(L, 1);
            
            
			    int gen_param_count = LuaAPI.lua_gettop(L);
            
                if(gen_param_count == 3&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)) 
                {
                    int _batchIndex = LuaAPI.xlua_tointeger(L, 2);
                    int _propertyName = LuaAPI.xlua_tointeger(L, 3);
                    
                        var gen_ret = gen_to_be_invoked.GetBatchVectorArray( _batchIndex, _propertyName );
                        translator.Push(L, gen_ret);
                    
                    
                    
                    return 1;
                }
                if(gen_param_count == 3&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& (LuaAPI.lua_isnil(L, 3) || LuaAPI.lua_type(L, 3) == LuaTypes.LUA_TSTRING)) 
                {
                    int _batchIndex = LuaAPI.xlua_tointeger(L, 2);
                    string _propertyName = LuaAPI.lua_tostring(L, 3);
                    
                        var gen_ret = gen_to_be_invoked.GetBatchVectorArray( _batchIndex, _propertyName );
                        translator.Push(L, gen_ret);
                    
                    
                    
                    return 1;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
            }
            
            return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Rendering.BatchRendererGroup.GetBatchVectorArray!");
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_GetBatchMatrixArray(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
                UnityEngine.Rendering.BatchRendererGroup gen_to_be_invoked = (UnityEngine.Rendering.BatchRendererGroup)translator.FastGetCSObj(L, 1);
            
            
			    int gen_param_count = LuaAPI.lua_gettop(L);
            
                if(gen_param_count == 3&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)) 
                {
                    int _batchIndex = LuaAPI.xlua_tointeger(L, 2);
                    int _propertyName = LuaAPI.xlua_tointeger(L, 3);
                    
                        var gen_ret = gen_to_be_invoked.GetBatchMatrixArray( _batchIndex, _propertyName );
                        translator.Push(L, gen_ret);
                    
                    
                    
                    return 1;
                }
                if(gen_param_count == 3&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& (LuaAPI.lua_isnil(L, 3) || LuaAPI.lua_type(L, 3) == LuaTypes.LUA_TSTRING)) 
                {
                    int _batchIndex = LuaAPI.xlua_tointeger(L, 2);
                    string _propertyName = LuaAPI.lua_tostring(L, 3);
                    
                        var gen_ret = gen_to_be_invoked.GetBatchMatrixArray( _batchIndex, _propertyName );
                        translator.Push(L, gen_ret);
                    
                    
                    
                    return 1;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
            }
            
            return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Rendering.BatchRendererGroup.GetBatchMatrixArray!");
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_SetBatchBounds(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
                UnityEngine.Rendering.BatchRendererGroup gen_to_be_invoked = (UnityEngine.Rendering.BatchRendererGroup)translator.FastGetCSObj(L, 1);
            
            
                
                {
                    int _batchIndex = LuaAPI.xlua_tointeger(L, 2);
                    UnityEngine.Bounds _bounds;translator.Get(L, 3, out _bounds);
                    
                    gen_to_be_invoked.SetBatchBounds( _batchIndex, _bounds );
                    
                    
                    
                    return 0;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
            }
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_GetNumBatches(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
                UnityEngine.Rendering.BatchRendererGroup gen_to_be_invoked = (UnityEngine.Rendering.BatchRendererGroup)translator.FastGetCSObj(L, 1);
            
            
                
                {
                    
                        var gen_ret = gen_to_be_invoked.GetNumBatches(  );
                        LuaAPI.xlua_pushinteger(L, gen_ret);
                    
                    
                    
                    return 1;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
            }
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_RemoveBatch(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
                UnityEngine.Rendering.BatchRendererGroup gen_to_be_invoked = (UnityEngine.Rendering.BatchRendererGroup)translator.FastGetCSObj(L, 1);
            
            
                
                {
                    int _index = LuaAPI.xlua_tointeger(L, 2);
                    
                    gen_to_be_invoked.RemoveBatch( _index );
                    
                    
                    
                    return 0;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
            }
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_EnableVisibleIndicesYArray(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
                UnityEngine.Rendering.BatchRendererGroup gen_to_be_invoked = (UnityEngine.Rendering.BatchRendererGroup)translator.FastGetCSObj(L, 1);
            
            
                
                {
                    bool _enabled = LuaAPI.lua_toboolean(L, 2);
                    
                    gen_to_be_invoked.EnableVisibleIndicesYArray( _enabled );
                    
                    
                    
                    return 0;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
            }
            
        }
        
        
        
        
        
        
		
		
		
		
    }
}
